<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.io.PrintWriter" %>
<%
	String path = request.getContextPath();
    
%>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<html>
<head> 
  <title>系统错误</title>
  <link rel='stylesheet' href='/style/style.css' type="text/css">
</head>

<body bgcolor="#FFFFFF">

<table width="100%" border="0" height="130">
  <tr>
    <td align="center">
	    <img src='<%=path%>/images/xinxitishi.GIF'>
    </td>
  </tr>
  <tr align="center">
    <td align="center">
	<%
		Exception ex = (Exception)request.getAttribute("sysError");
		if (ex!=null)
		{
			out.print("系统发生异常:" + ex.getMessage() + "<br>");
	%>
		  <font color="red">
	<%
			StackTraceElement[] exceptionList = ex.getStackTrace();
			int len = exceptionList.length;
			if(len > 20) {
				len = 20;
			}
			
			for(int i = 0 ; i < len ; i++) {
				out.print(exceptionList[i].toString() + "<br>");
			}
			
			if(len < exceptionList.length) {
				out.print("20 more ............");
			}
		}	
	%>
		  </font>
    </td>
  </tr>
</table>
</body>
</html>

